import request from '@/plugins/axios';
import { GetUserReturn, loginData, userLoginReturn } from '@/interfaces/aboutApi';

// 登录
export const userLogin = (data: loginData) => request<userLoginReturn, loginData>('/login', 'post', data);

// 获取所有用户
export const getUsers = () => request<GetUserReturn[]>('/user', 'get');
